home *** CD-ROM | disk | FTP | other *** search
- /*------------------------------------------------------------------------------
- #
- # Apple Macintosh Developer Technical Support
- #
- # MacShell
- #
- # MacShell.h - Rez and C Include Source
- #
- # Copyright © 1989 Apple Computer, Inc.
- # All rights reserved.
- #
- # Versions:
- # 1.00 08/88
- # 1.01 11/88
- # 1.02 04/89 MPW 3.1
- # 2.00 09/90 7.0 Happy
- #
- ------------------------------------------------------------------------------*/
-
-
- #ifndef __CSHELLCOMMON__
- #define __CSHELLCOMMON__
-
- /* MacShell.c and MacShell.r include this file. */
-
- #ifndef __MACSHELLVERSION__
- #include "MacShellVersion.h"
- #endif
-
- #define docCreator 'CSHL'
- #define docFileType 'CDOC'
-
- #define rTECtl 256
- #define rListCtl 272
-
- #define kMinSize 150 /* application's minimum size (in K) */
- #define kPrefSize 200 /* application's preferred size (in K) */
-
- #define rMenuBar 128 /* application's menu bar */
- #define rAboutAlert 128 /* about alert */
- #define rErrorAlert 129 /* error alert */
- #define rWindow 128 /* application's window */
-
- #define rWindowYPos 60
- #define rWindowHeight 287
- #define rWindowXPos 40
- #define rWindowWidth 504
-
- /* The following constants are used to identify menus and their items. The menu IDs
- have an "m" prefix and the item numbers within each menu have an "i" prefix. */
-
- #define mApple 128 /* Apple menu */
- #define iAbout 1
-
- #define mFile 129 /* File menu */
- #define iNew 1
- #define iOpen 2
- #define iClose 4
- #define iSave 5
- #define iSaveAs 6
- #define iDuplicate 7
- #define iPageSetup 9
- #define iPrint 10
- #define iQuit 12
-
- #define mEdit 130 /* Edit menu */
- #define iUndo 1
- #define iCut 3
- #define iCopy 4
- #define iPaste 5
- #define iClear 6
-
- /* menu constants for communicate */
- #define mCommunicate 131
- #define iConnectToUser 1
- #define iSendToUser 2
-
-
- /* 1.01 - kMinHeap - This is the minimum result from the following
- equation:
-
- ORD(GetApplLimit) - ORD(ApplicZone)
-
- for the application to run. It will insure that enough memory will
- be around for reasonable-sized scraps, FKEYs, etc. to exist with the
- application, and still give the application some 'breathing room'.
- To derive this number, we ran under a MultiFinder partition that was
- our requested minimum size, as given in the 'SIZE' resource. */
-
- #define kMinHeap 21 * 1024
-
-
- /* 1.01 - kMinSpace - This is the minimum result from PurgeSpace, when called
- at initialization time, for the application to run. This number acts
- as a double-check to insure that there really is enough memory for the
- application to run, including what has been taken up already by
- pre-loaded resources, the scrap, code, and other sundry memory blocks. */
-
- #define kMinSpace 8 * 1024
-
-
-
- /* These #defines are used to set enable/disable flags of a menu */
-
- #define AllItems 0b1111111111111111111111111111111 /* 31 flags */
- #define NoItems 0b0000000000000000000000000000000
- #define MenuItem1 0b0000000000000000000000000000001
- #define MenuItem2 0b0000000000000000000000000000010
- #define MenuItem3 0b0000000000000000000000000000100
- #define MenuItem4 0b0000000000000000000000000001000
- #define MenuItem5 0b0000000000000000000000000010000
- #define MenuItem6 0b0000000000000000000000000100000
- #define MenuItem7 0b0000000000000000000000001000000
- #define MenuItem8 0b0000000000000000000000010000000
- #define MenuItem9 0b0000000000000000000000100000000
- #define MenuItem10 0b0000000000000000000001000000000
- #define MenuItem11 0b0000000000000000000010000000000
- #define MenuItem12 0b0000000000000000000100000000000
- #define MenuItem13 0b0000000000000000001000000000000
-
-
- #define A_USERITEM 2
- #define sErrorOccurred 1 /* Strings to display in the user item */
- #define sErrorNumber 2
- #define sEventWhat 3
- #define sEventMessage 4
- #define sMessageID 5
-
-
- #define rYesNoCancel 250
- #define rOpenReadOnly 260
- #define rPrStatusDlg 270
-
- #define ibeamCursor 257
- #define oappCursor 300
- #define odocCursor 301
- #define pdocCursor 302
- #define quitCursor 303
- #define ansrCursor 304
- #define mvfwCursor 305
- #define echoCursor 306
-
-
- /* miscellaneous string list ID */
- #define rMiscStrings 366
- #define sSFprompt 1
- #define sOrigName 2
- #define sWClosing 3
- #define sQuitting 4
-
-
- /* Not-good-at-all startup error messages. */
- #define rBadNewsStrings 367
- #define sWimpyMachine 1 /* Strings to display in the user item */
- #define sHeapTooSmall 2
- #define sNoFreeRoomInHeap 3
- #define sBadThingHappened 4
-
-
- #define rDynHelpStrings 368
- #define rDynHelpSlider 1
-
-
- #define rPPCText 500
- #define sTitleText 1
- #define sAppText 2
-
-
- #endif __CSHELLCOMMON__
-
-